package com.xypower.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 类名:
 * 作者:XY
 * 创建时间:2021/11/15-0:35
 * 功能:
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Book implements Serializable {
    @Id
    @Column(name = "bookid")
    private Integer bookid;
    @Column(name = "bookname")
    private String bookname;
    @Column(name = "bookauthor")
    private String bookauthor;
    @Column(name = "publisher")
    private String publisher;
    @Column(name = "storecount")
    private Integer storecount;
    @Column(name = "disid")
    private Integer disid;
    @Column(name = "saleprice")
    private Float saleprice;
    @Transient
    private String discname;
    @Transient
    private Float discprice;
}
